<title>账户充值</title>
<link rel="stylesheet" type="text/css" href="css/accourt.css"/>
<link rel="stylesheet" type="text/css" href="css/jump.css"/>
<script src="js/ui/PopWindow.js"></script>
<style type="text/css">
#PopWindow{ text-align:left; border:8px solid #767576; padding:20px;}
#PopWindow p{margin-bottom:5px; border-bottom:1px solid #666; padding-bottom:5px;}
#PopWindow p i{ display:inline-block; width:15px; margin-bottom:1.5px; margin-right:3px; background:url(http://csf.16u.cc/images/un_card.png) left bottom no-repeat;}
#PopWindow strong{ font-weight:bold; color:#000;}
#PopWindow .pay{margin:10px; text-align:center;}
#PopWindow .pay input{padding:5px 10px; margin-right:20px; cursor:pointer; font-size:12px; }
#PopWindow .loading{ background: url("http://www.16u.cc/biz/images/ajax_loader_bar.gif") no-repeat scroll center center transparent; height: 80px; width: 180px;}
form p span label{background:url(http://csf.16u.cc:88/images/un_card.png);height: 30px;width: 120px}
#offline-pay { border: 1px solid #BFBFBF; border-top: 0 none; padding: 10px 20px; font-size: 14px; line-height: 26px; }
.bank-account{width: 240px;background-color: #ffffcc;; padding: 10px;}
/*#offline-pay .num{color: #3eacf3;font-family: arial;font-size: 16px; font-weight: bold;*/
/*}*/
</style>
<div class="r_content">
	<!-- <div class="accourt_title">
		<ul>
			<li><a href="accourtmanage.html">账户管理</a></li>
			<li><a href="trecord.html">交易记录</a></li>
			<li class="acct"><a href="#">充值</a></li>
			<li><a href="#">提现</a></li>
		</ul>
	</div> -->
	<?include("tpl/account_bar.tpl");?>
	<div class="aboutmoney">
		<span class="absp">充值账号：<strong class="passport"><?=$_SESSION['account']?></strong></span>
		<span class="absp">资金余额：<strong class="money"><?=$money?></strong> 元</span>
	</div>
	<div class="fcontent">
		<div class="ali_charge current">
            
            <!--			<h4>使用支付宝充值<span>(<a href="http://club3.alipay.com/yy/club/zhifudaquan/index.html" target="_blank">如何开通支付宝？</a>)</span></h4>-->
            <form action="recharge.php" target="_blank" method="post" name="recharge" >
                <input type="hidden" id="Bankco" name="Bankco" value=""/>
                <p class="bankBox">
                    <label id="charge_mode">充值方式：</label>
                    <div class="i_bankBox">

                        <span id="cmb"  gateid="00021">&nbsp;</span>
                        <span id="ccb"  gateid="00003">&nbsp;</span>
                        <span id="abc"  gateid="00017">&nbsp;</span>
                        <span id="icbc" gateid="00018">&nbsp;</span>
                        <span id="boc"  gateid="00083">&nbsp;</span>
                        <span id="comm" gateid="00005">&nbsp;</span>

                    <?if($_SESSION['account']=='100090' || $_SESSION['account']=='csj1'){?>
                    <?}?>					
                    <span id="uni" class="uni">&nbsp;</span>
                    <span id="ali" class="ali">&nbsp;</span>
                    </div>
				</p>
				<p class="setMt">
<!--					<label>您要使用的支付宝账号：</label>-->
<!--					<input type="text" class="inputT moneyT" name="alipay" value="--><?//=$alipay?><!--"><span style="color: red; margin-left: 5px;">(选填 非使用支付宝则无视此项)</span>-->
				</p>
				<p>
					<label>充值金额：</label>
					<input type="text" class="inputT moneyT" name="money" value="1000" id="ali_money">
					<strong>元</strong><em class="greyb">金额格式：666.66</em>
				</p>
				<p style=" padding-bottom:30px;">
					<label>&nbsp;</label>
					<input type="button" onclick="sub()" class="submit" value="立即充值" >
				</p>
			</form>
		</div>
	</div>
    <div id="offline-pay">
        <p>如果遇到银行限额超出导致无法充值的(查看<a href="https://cshall.alipay.com/lab/help_detail.htm?help_id=211661" target="_blank">各银行的网上银行支付限额总表</a>)，建议您使用银行转账功能:</p>
        <div class="bank-account">
            <p>户名：福建票付通信息科技有限公司</p>
            <p>账号：<span class="num">5919&nbsp;&nbsp;&nbsp;0405&nbsp;&nbsp;&nbsp;6310&nbsp;&nbsp;&nbsp;201</span></p>
            <p>开户行：招商银行福州分行白马支行</p>
            <p>工作时间：周一至周五，9:00至17:30</p>
        </div>
        <p>我们的财务在收到您的钱款后会直接往您的账户余额上充值，如有疑问请咨询客服人员。</p>
    </div>
    <div style="margin: 0 20px; padding-bottom: 5px; background: rgba(255, 253, 230, 0.28);">
        <img src="http://images.12301.cc/icon/img/pay_act.png" />
    </div>
   
	<div  class="tips" style="margin-left: 20px; margin-top: -10px;"> 
		<h4>关于充值：</h4>
		<p>
		1.充值金额将体现在“账户余额”中。</br>
		2.充值余额可用于分销平台购买分销商品。</br>
		</p>
	</div>
	<div style="display:none"id="pop_tpl">
		<p class="tip"><i>&nbsp;</i>付款完成前请勿关闭当前窗口，完成付款后请根据你的情况点击下面按钮。</p>
		<strong>请在支付页完成付款后再选择：</strong>
		<div class="pay">
			<input type="button" value="已完成付款" onclick="window.location=window.location.href"/>
			<input type="button" value="付款出现问题" onclick="popBox.close();"/>
		</div>
		</br>
	<!--<a href="#" onclick="popBox.close();return false"><< 返回重新选择付款方式</a>-->
	</div>
</div>
<script>
    $(".i_bankBox span").on('click',function(e){
        var target = $(e.currentTarget);
        $(".i_bankBox span").removeClass('active');
        target.addClass('active');
    })
    var popBox=new PopWindow();
    function sub(){
        var money=$("#ali_money").val();
        if(!money){
            alert('请输入金额');
            return false;
        }
        if(isNaN(money)){
            alert('请输入正确的金额!');
            return false;
        }
        if($('#ali').hasClass('active')){
            $("form[name='recharge']").attr("action","recharge.php");
        }else if($('#uni').hasClass('active')){
            $("form[name='recharge']").attr("action","module/zax/unipay/recharge.php");
        }else{
            $("#Bankco").val($('.active').attr('gateid'));
            $("form[name='recharge']").attr("action","module/zax/ips_pay/recharge.php");
        }
        document.forms["recharge"].submit();
        popBox.open($("#pop_tpl").html())
    }
</script>